<?php
/**
 * 用户管理类
 * @author zengnz
 *
 */
class UserAction extends CommonAction
{
	
	public function userList() {
		$Model = D('Admin');
		$list = $Model -> field('*') -> select();
// 		echo "<pre>";
// 		var_dump($list);exit;
		$userList = array();
		foreach ($list as $val) {
			
			$userList[] = "['".$val['id']."','".$val['account']."','".$val['name']."','".$val['email']."','".$val['last_login_time']."','".$val['last_login_ip']."','".$val['login_times']."','".$val['status']."']";
		}
		
		$userLists = '['.implode(',', $userList).']';
		
		
		$this -> assign('userList', $userLists);
		$this -> display();
	}
	
	public function userAdd() {
		
		
	}
	
	public function test() {
		
		$this -> display();
	}
}